package com.example.sunsg.okhttptest.roobo;

import java.util.List;

/**
 * Created by sunsg on 16/8/9.
 */
public class RooboLoginRsp {

    /**
     * result : 0
     * msg : success
     * data : {"userid":"ps:81b758886eec3639c15ae26dd8e0a95c","token":"5591cc033df7bfb3097fedf9a7402410","mytm":"2016-08-10T15:15:59+08:00","name":"Sunsg","headimg":"","mcids":[{"mcid":"1011000000101063","name":"Sunsg","online":true,"isdefense":false,"manager":true,"battery":100,"power":false,"power_supply":true},{"mcid":"1011000000111010","name":"shengqi(๑˙❥˙๑)","online":false,"isdefense":false,"manager":false,"battery":100,"power":false,"power_supply":false},{"mcid":"1011000000111013","name":"布丁013","online":false,"isdefense":false,"manager":false,"battery":40,"power":false,"power_supply":false},{"mcid":"1011000000111002","name":"特仑苏","online":true,"isdefense":false,"manager":false,"battery":80,"power":false,"power_supply":true},{"mcid":"1011000000101060","name":"联调测试1","online":true,"isdefense":false,"manager":false,"battery":100,"power":false,"power_supply":true},{"mcid":"1011000000200C11","name":"布丁11","online":false,"isdefense":false,"manager":false,"battery":0,"power":false,"power_supply":false}],"requests":[]}
     */

    private int result;
    private String msg;
    /**
     * userid : ps:81b758886eec3639c15ae26dd8e0a95c
     * token : 5591cc033df7bfb3097fedf9a7402410
     * mytm : 2016-08-10T15:15:59+08:00
     * name : Sunsg
     * headimg :
     * mcids : [{"mcid":"1011000000101063","name":"Sunsg","online":true,"isdefense":false,"manager":true,"battery":100,"power":false,"power_supply":true},{"mcid":"1011000000111010","name":"shengqi(๑˙❥˙๑)","online":false,"isdefense":false,"manager":false,"battery":100,"power":false,"power_supply":false},{"mcid":"1011000000111013","name":"布丁013","online":false,"isdefense":false,"manager":false,"battery":40,"power":false,"power_supply":false},{"mcid":"1011000000111002","name":"特仑苏","online":true,"isdefense":false,"manager":false,"battery":80,"power":false,"power_supply":true},{"mcid":"1011000000101060","name":"联调测试1","online":true,"isdefense":false,"manager":false,"battery":100,"power":false,"power_supply":true},{"mcid":"1011000000200C11","name":"布丁11","online":false,"isdefense":false,"manager":false,"battery":0,"power":false,"power_supply":false}]
     * requests : []
     */

    private DataBean data;

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private String userid;
        private String token;
        private String mytm;
        private String name;
        private String headimg;
        /**
         * mcid : 1011000000101063
         * name : Sunsg
         * online : true
         * isdefense : false
         * manager : true
         * battery : 100
         * power : false
         * power_supply : true
         */

        private List<McidsBean> mcids;
        private List<?> requests;

        public String getUserid() {
            return userid;
        }

        public void setUserid(String userid) {
            this.userid = userid;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public String getMytm() {
            return mytm;
        }

        public void setMytm(String mytm) {
            this.mytm = mytm;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getHeadimg() {
            return headimg;
        }

        public void setHeadimg(String headimg) {
            this.headimg = headimg;
        }

        public List<McidsBean> getMcids() {
            return mcids;
        }

        public void setMcids(List<McidsBean> mcids) {
            this.mcids = mcids;
        }

        public List<?> getRequests() {
            return requests;
        }

        public void setRequests(List<?> requests) {
            this.requests = requests;
        }

        public static class McidsBean {
            private String mcid;
            private String name;
            private boolean online;
            private boolean isdefense;
            private boolean manager;
            private int battery;
            private boolean power;
            private boolean power_supply;

            public String getMcid() {
                return mcid;
            }

            public void setMcid(String mcid) {
                this.mcid = mcid;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public boolean isOnline() {
                return online;
            }

            public void setOnline(boolean online) {
                this.online = online;
            }

            public boolean isIsdefense() {
                return isdefense;
            }

            public void setIsdefense(boolean isdefense) {
                this.isdefense = isdefense;
            }

            public boolean isManager() {
                return manager;
            }

            public void setManager(boolean manager) {
                this.manager = manager;
            }

            public int getBattery() {
                return battery;
            }

            public void setBattery(int battery) {
                this.battery = battery;
            }

            public boolean isPower() {
                return power;
            }

            public void setPower(boolean power) {
                this.power = power;
            }

            public boolean isPower_supply() {
                return power_supply;
            }

            public void setPower_supply(boolean power_supply) {
                this.power_supply = power_supply;
            }
        }
    }
}
